test_glmark2(){
    if [[ ! -x '/usr/local/bin/glmark2' ]];then
		if [[ "$mode" == 'auto' ]];then
			echo -e "自动安装"
		else
        		input '检测到未安装-->[ glmark2 ],是否立即进入安装[ y/n ],默认[ y ]' gl_install
        		input_check $gl_install "安装-->[ glmark2 ]" "y" gl_install
		fi
        if [[ $gl_install == 'y' ]];then
            install_install_glmark2
        else
            red_bg "未安装-->[ glmark2 ]"
            exit 1
        fi
    fi
	if [[ "$mode" == 'auto' ]];then
	    	glmark2
	else
		input '检测到已安装-->[ glmark2 ],是否立即进入测试[ y/n ],默认[ n ]' glmark
		input_check $glmark "测试-->[ glmark2 ]" "n" glmark
		if [[ "$glmark" == 'y' ]];then
			glmark2
		fi
	fi
}